/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package stuff.util;

import java.util.Random;

/**
 *
 * @author Николай
 */
public class PasswordPseudoGenerator {

    public static final char[] characters = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u',
        'v', 'w', 'x', 'y', 'z'};

    Random rnd = new Random();

    public String getPassword(int len) {
        String pwd = "";
        for (int i = 0; i < len; i++)
            pwd += characters[rnd.nextInt(characters.length)];
        return pwd;
    }
}
